var libraries = MojoLoader.require({ name: "foundations", version: "1.0" });
var StringUtils = libraries["foundations"].StringUtils;
var Future      = libraries["foundations"].Control.Future;

var configObject = null;
var username = null;
var islogin = false;
var weekday = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];

function setLocalData(key, value){
    // if (window.localStorage) {
		// window.localStorage.setItem(key, value);
	// } else {
		var mydata = new Mojo.Model.Cookie(key);
		mydata.put(value);
	// }
    
};
function getLocalData(key){
    // if (window.localStorage) {
		// if(window.localStorage.getItem(key))
		     // return window.localStorage.getItem(key);
	// }else {
        return new Mojo.Model.Cookie(key).get();
	// }
};